diff options
Diffstat (limited to 'app/[lng]/evcp/(evcp)/menu-access-dept/_components/domain-constants.ts')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/menu-access-dept/_components/domain-constants.ts | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app/[lng]/evcp/(evcp)/menu-access-dept/_components/domain-constants.ts b/app/[lng]/evcp/(evcp)/menu-access-dept/_components/domain-constants.ts new file mode 100644 index 00000000..2b104d0e --- /dev/null +++ b/app/[lng]/evcp/(evcp)/menu-access-dept/_components/domain-constants.ts @@ -0,0 +1,52 @@ + + +// 통합된 도메인 옵션 - 모든 도메인 정보를 포함 +export const DOMAIN_OPTIONS = [ + { + value: "pending", + label: "pending", + description: "승인 대기 상태", + color: "bg-yellow-100 text-yellow-800 border-yellow-200" + }, + { + value: "evcp", + label: "evcp", + description: "eVCP 시스템 관리자", + color: "bg-blue-100 text-blue-800 border-blue-200" + }, + { + value: "procurement", + label: "procurement", + description: "구매", + color: "bg-green-100 text-green-800 border-green-200" + }, + { + value: "sales", + label: "sales", + description: "기술영업", + color: "bg-purple-100 text-purple-800 border-purple-200" + }, + { + value: "engineering", + label: "engineering", + description: "설계", + color: "bg-orange-100 text-orange-800 border-orange-200" + }, +] as const; + +// 헬퍼 함수들 - 필요시 매핑 객체 생성 +export const getDomainOption = (value: string) => { + return DOMAIN_OPTIONS.find(option => option.value === value); +}; + +export const getDomainLabel = (value: string) => { + return getDomainOption(value)?.label || value; +}; + +export const getDomainColor = (value: string) => { + return getDomainOption(value)?.color || "bg-gray-100 text-gray-800 border-gray-200"; +}; + +export const getDomainDescription = (value: string) => { + return getDomainOption(value)?.description || value; +};
\ No newline at end of file |
